package org.goyo.main.services.base;

import org.goyo.common.exception.DBException;
import org.goyo.common.exception.ServiceException;
import org.goyo.common.utils.Pager;
import org.goyo.main.domain.entity.BaseObject;
import org.goyo.main.domain.entity.base.Material;
import org.goyo.main.domain.entity.base.MaterialEntry;
import org.goyo.main.domain.excelBean.MaterialExcel;

import java.util.List;

public interface IMaterialService {

  public BaseObject saveOrUpdateInfo(Material material) throws DBException,ServiceException;

  public void delByUuids(Object[] uuids) throws DBException,ServiceException;

  public Material findByUuid(String uuid) throws DBException,ServiceException;

  public Pager<Material> findByCondition(String where,Pager pager) throws DBException,ServiceException;
  
  public Pager<MaterialEntry> findByEntryCondition(String where,Pager pager) throws DBException,ServiceException;

  public void saveOrUpdateMaterialList(List<MaterialExcel> list)throws DBException,ServiceException;

  public List<MaterialExcel> queryExportDate(String where)throws DBException,ServiceException;

  public boolean checkNumberUsed(String uuid, String number)throws DBException,ServiceException;


}
